﻿<%@ Page Language="C#" MasterPageFile="~/impresiones/MasterImpresiones.master" AutoEventWireup="true" CodeFile="OrdenDeCompraold.aspx.cs" Inherits="impresiones_OrdenDeCompra" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 600px;">
        <tr>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
                Fecha :</td>
            <td style="height: 20px; text-align: left" valign="top">
                <asp:TextBox ID="txbFecha" runat="server" Enabled="False" Width="150px"></asp:TextBox></td>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
                N° OC :</td>
            <td style="height: 20px; text-align: left" valign="top">
                <asp:TextBox ID="txbNumeroOc" runat="server" Enabled="False" Width="150px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
                Monto Total :</td>
            <td style="height: 20px; text-align: left" valign="top">
                <asp:TextBox ID="txbMontoTotal" runat="server" Enabled="False" Width="150px"></asp:TextBox></td>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
                Proveedor :</td>
            <td style="height: 20px; text-align: left" valign="top">
                <asp:TextBox ID="txbProveedor" runat="server" Enabled="False" Width="150px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
                Cta. Corriente :</td>
            <td style="height: 20px; text-align: left" valign="top">
                <asp:TextBox ID="txbCuentaCorriente" runat="server" Enabled="False" onChange="intOnly(this);"
                    onkeypress="intOnly(this);" onkeyup="intOnly(this);" Width="150px"></asp:TextBox></td>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
            </td>
            <td style="height: 20px; text-align: left" valign="top">
            </td>
        </tr>
        <tr>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
                Cheque N° :</td>
            <td style="height: 20px; text-align: left" valign="top">
                <asp:TextBox ID="txbNumeroDeCheque" runat="server" Enabled="False" onChange="intOnly(this);"
                    onkeypress="intOnly(this);" onkeyup="intOnly(this);" Width="150px"></asp:TextBox></td>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
                Factura N° :</td>
            <td colspan="1" style="height: 20px; text-align: left" valign="top">
                <asp:TextBox ID="txbNumeroFactura" runat="server" onChange="intOnly(this);" onkeypress="intOnly(this);"
                    onkeyup="intOnly(this);" Width="150px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
            </td>
            <td style="height: 20px; text-align: left" valign="top">
            </td>
            <td style="width: 100px; height: 20px; text-align: right" valign="top">
            </td>
            <td style="height: 20px; text-align: right" valign="top">
            </td>
        </tr>
        <tr>
            <td colspan="4" rowspan="2" style="text-align: right" valign="top">
                <asp:GridView ID="gdvDetalleOC" runat="server" AutoGenerateColumns="False" EmptyDataText="Seleccione una Orden"
                    ShowFooter="True"
                    Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="Producto">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Producto.Descripcion") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Valor Unitario">
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("ValorUnitario") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Cantidad">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Cantidad") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ValorTotal">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("ValorTotal") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Right" />
                            <FooterTemplate>
                                <asp:Label ID="lblTotal" runat="server" Text='<%# Eval("ValorTotal") %>'></asp:Label>
                            </FooterTemplate>
                            <FooterStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="RowStyle" />
                    <PagerStyle CssClass="PagerStyle" />
                    <HeaderStyle CssClass="HeaderStyle" />
                    <AlternatingRowStyle CssClass="AltRowStyle" />
                    <SelectedRowStyle CssClass="SelectedRowStyle" />
                    <EmptyDataRowStyle HorizontalAlign="Center" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
        </tr>
    </table>
</asp:Content>

